package com.pap.product.publish.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_product_publish", namespace = "com.pap.product.publish.auto.mapper.ProductPublishMapper", remarks = " 修改点 ", aliasName = "t_product_publish t_product_publish")
public class ProductPublish extends PapBaseEntity implements Serializable {
	/**
	 * 所属产品编号,所属表字段为t_product_publish.PRODUCT_ID
	 */
	@MyBatisColumnAnnotation(name = "PRODUCT_ID", value = "t_product_publish_PRODUCT_ID", chineseNote = "所属产品编号", tableAlias = "t_product_publish")
	private String productId;

	/**
	 * 状态,所属表字段为t_product_publish.STATUS_FLAG
	 */
	@MyBatisColumnAnnotation(name = "STATUS_FLAG", value = "t_product_publish_STATUS_FLAG", chineseNote = "状态", tableAlias = "t_product_publish")
	private String statusFlag;

	/**
	 * 生效时间,所属表字段为t_product_publish.BEGIN_TIME
	 */
	@MyBatisColumnAnnotation(name = "BEGIN_TIME", value = "t_product_publish_BEGIN_TIME", chineseNote = "生效时间", tableAlias = "t_product_publish")
	private String beginTime;

	/**
	 * 失效时间,所属表字段为t_product_publish.END_TIME
	 */
	@MyBatisColumnAnnotation(name = "END_TIME", value = "t_product_publish_END_TIME", chineseNote = "失效时间", tableAlias = "t_product_publish")
	private String endTime;

	private static final long serialVersionUID = 1L;

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getStatusFlag() {
		return statusFlag;
	}

	public void setStatusFlag(String statusFlag) {
		this.statusFlag = statusFlag;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	@Override
	public String getDynamicTableName() {
		return "t_product_publish";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", productId=").append(productId);
		sb.append(", statusFlag=").append(statusFlag);
		sb.append(", beginTime=").append(beginTime);
		sb.append(", endTime=").append(endTime);
		sb.append("]");
		return sb.toString();
	}
}